export const studyRoomActionType = {
	getters: {
		studyRoomDetails: "studyRoom/studyRoomDetails",
		fromPage: "studyRoom/fromPage",
	},
	mutations: {
		studyRoomDetails: "studyRoom/studyRoomDetails",
		fromPage: "studyRoom/fromPage",
	},
	actions: {
		
	}
}

export default {
	namespaced: false,
	state: {
		studyRoomDetails: null, // 自习室详情
		fromPage: "", // 从哪个页面进入自习室，结束自习后返回到指定页面
	},
	getters: {
		[studyRoomActionType.getters.studyRoomDetails](state) {
			return state.studyRoomDetails
		},
		[studyRoomActionType.getters.fromPage](state) {
			return state.fromPage
		},
	},
	mutations: {
		[studyRoomActionType.mutations.studyRoomDetails](state, val) {
			state.studyRoomDetails = val
		},
		[studyRoomActionType.mutations.fromPage](state, val) {
			state.fromPage = val
		},
	},
	actions: {
		
	}
}